﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="CustomerContactSystem.WebForms.Register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Registration</h1>
<asp:Placeholder ID="RegisterPanel" runat="server">
    <fieldset id="CustDetails">
        <legend>User Details:</legend>
            <asp:Label ID="DeptListCaption" runat="server" Text="Department:" AssociatedControlID="DeptList"></asp:Label>
            <asp:dropdownlist id="DeptList" runat="server"></asp:dropdownlist>

            <asp:label ID="UsernameCaption" runat="server" Text="Username:" AssociatedControlID="Username"></asp:label>
            <asp:TextBox ID="Username" runat="server"></asp:TextBox>

            <asp:label ID="DisplayNameCaption" runat="server" Text="Name to Display:" AssociatedControlID="DisplayName"></asp:label>
            <asp:TextBox ID="DisplayName" runat="server" MaxLength="100"></asp:TextBox>

            <asp:label ID="EmailCaption" runat="server" Text="Email Address:" AssociatedControlID="Email"></asp:label>
            <asp:TextBox ID="Email" runat="server" MaxLength="100"></asp:TextBox>

            <asp:label ID="EmailAgainCaption" runat="server" Text="Email Again:" AssociatedControlID="EmailAgain"></asp:label>
            <asp:TextBox ID="EmailAgain" runat="server" MaxLength="100"></asp:TextBox>

            <asp:label ID="PasswordCaption" runat="server" Text="Password (max. 20):" AssociatedControlID="Password"></asp:label>
            <asp:TextBox ID="Password" runat="server" TextMode="Password" MaxLength="20"></asp:TextBox>

            <asp:label ID="Password2Caption" runat="server" Text="Password again:" AssociatedControlID="Password2"></asp:label>
            <asp:TextBox ID="Password2" runat="server" TextMode="Password" MaxLength="12"></asp:TextBox>

            <asp:Button ID="RegisterUser" runat="server" Text="Register" CssClass="submit" OnClick="RegisterUserClick" /><br /><br />
            <asp:Label ID="ErrorMsg" runat="server" CssClass="error"></asp:Label>
    </fieldset>
</asp:Placeholder>
<asp:Placeholder ID="ThankYouPanel" runat="server" Visible="false">
<p>Thank you for registering. You now have basic access to the system to handle any enquiries referred to you or to submit them. For more access than this you will need to contact your system supervisor.</p>
</asp:Placeholder>    
</asp:Content>
